package com.zzy.dao;

import com.zzy.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {

    public User findByUserNameAndPassword(String userName, String password);

    public User findByUserName(String userName);
}
